package com.andyage.admin.dao;

import java.util.List;

import com.andyage.admin.bean.LotteryBean;

public interface LotteryMapper {
	/**
	 * 查询中奖订单数据 此mapping写在订单中
	 * @param loBean
	 * @return
	 */
	List<LotteryBean> queryLotteryInfo(LotteryBean loBean);
	/**
	 * 查询中奖订单数量  此mapping写在订单中
	 * @param loBean
	 * @return
	 */
	int queryLotteryInfoCount(LotteryBean loBean);
	/**
	 * 查询已中奖的订单
	 * @param loBean
	 * @return
	 */
	List<LotteryBean> queryqueryLotteryedInfo(LotteryBean loBean);
	/**
	 * 将抽中的订单id写入中奖信息表
	 * @param lotteryList
	 * @return
	 */
	int insertLotteryInfo(List<LotteryBean> lotteryList);
	/**
	 * 修改中奖表中的是否发送短信字段
	 * 1.否 2.是
	 * 已发送则改为 2
	 * @param sendSMS
	 * @return
	 */
	int updateLotteryInfoBySendSMS(LotteryBean loBean);
}
